﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace EasyCore.ObjectMapper.Attributes
{
    /// <summary>
    /// 双向映射
    /// </summary>
    [AttributeUsage(AttributeTargets.Class)]
    public class MapAttribute : Attribute
    {
        /// <summary>
        /// 初始化一个<see cref="MapFromAttribute"/>类型的新实例
        /// </summary>
        public MapAttribute(params Type[] types)
        {
            // Check.NotNull(sourceTypes, nameof(sourceTypes));
            Types = types;
        }

        /// <summary>
        /// 源类型
        /// </summary>
        public Type[] Types { get; }
    }
}
